package com.irdstudio.apicenter.console.service.appframe;

import java.sql.SQLException;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.irdstudio.apicenter.console.dm.AppTradeInout;
import com.irdstudio.apicenter.console.dm.AppTradeInoutDao;

@Service(value = "appTradeInoutService")
public class AppTradeInoutService {
	@Autowired
	private AppTradeInoutDao appTradeInoutDao;

	public int delete(String recode_key) throws SQLException,
			ClassNotFoundException {

		return appTradeInoutDao.delete(recode_key);

	}

	public int insert(AppTradeInout appTradeInout) throws SQLException,
			ClassNotFoundException {

		return appTradeInoutDao.insert(appTradeInout);

	}

	public List<AppTradeInout> queryTradeInOrOut(String trade_id,
			String trade_element_type) throws SQLException {
		return appTradeInoutDao.queryTradeInOrOut(trade_id, trade_element_type);
	}

}
